โ– humdrum codex / sportsball
license AGPL-3.0
2.0 KB raw
id
TASK-011
title
Team stat bars in detail view
status
๐Ÿ Done
assignee
@humdrum-tiv
created_date
2026-06-16 21:52
updated_date
2026-06-18 01:17
labels
feature
dependencies
priority
medium
ordinal
11000

Description

Golazo-style team statistics in the game detail: possession as a split gradient bar, shots / shots-on-target / corners / fouls as mirrored comparison bars. Data is already available but unused: ESPN soccer summary boxscore.teams[].statistics (possessionPct, totalShots, shotsOnTarget, wonCorners, foulsCommitted, saves, passes). Extend model.GameDetail + espn mapping to capture team-level stats; render bars with block shading (โ–“โ–’โ–‘). Also applies to MLB/NBA/NHL/NFL team statistics.

Acceptance Criteria

Final Summary

Added soccer team-stat comparison bars to the game detail view.

What:

Tests: mapTeamStats (curated/ordered pairing + present-keys-only) and both-sides-required guard; live-smoke verified 6 stats map for a real World Cup game. go vet + go test ./... pass.